$(function () {
    $.get("../extend/listAgent", function (r) {
        vm.cancleList = r.list;
    });
    console.log(vm.cancleList);
});

var vm = new Vue({
    el: '#rrapp',
    data: {
        cancleList: []
    },
    methods: {
        takingMobel: function (id) {
            console.log(id);
            openWindow({
                title: '在聊主播',
                type: 2,
                content: '../sysapi/zbuser.html?agent=' + id + '&onlineStatus=2'
            })
        },
        onlineMobel: function (id) {
            console.log(id);
            openWindow({
                title: '在线主播',
                type: 2,
                content: '../sysapi/zbuser.html?agent=' + id + '&onlineStatus=1'
            })
        },
        offOnlineMobel: function (id) {
            console.log(id);
            openWindow({
                title: '离线主播',
                type: 2,
                content: '../sysapi/zbuser.html?agent=' + id + '&onlineStatus=4'
            })
        },
        offTake: function (id) {
            console.log(id);
            openWindow({
                title: '勿扰主播',
                type: 2,
                content: '../sysapi/zbuser.html?agent=' + id + '&onlineStatus=3'
            })
        },
        applicationing: function (id) {
            console.log(id);
            openWindow({
                title: '待审核管理',
                type: 2,
                content: '../sysapi/audlting.html?agent=' + id
            })
        },
        amountWith: function (id) {
            console.log(id);
            openWindow({
                title: '提现管理',
                type: 2,
                content: '../connection/apiwithdrawbill.html?agent=' + id
            })
        },

        amountBill: function (id) {
            console.log(id);
            openWindow({
                title: '总消费管理',
                type: 2,
                content: '../connection/apiamount.html?agent=' + id
            })
        },


    }
});